//获取应用实例
const app = getApp()
Page({
  data: {
    dayinname:'打印机名称打印机名称…',
    dayinmodel:'FHJG716317313',
    mypices:0,
    price:'89.00',
    deposit:'200',
    way_deposit:'每月',
    date: '2020/04/23    09: 23: 12',
    money:'500',
    echarge_date: '2020/04/23    09: 23: 12',
    currentTap:0,
    today_pic:'',
    // 组件所需的参数
    nvabarData: {
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '余额明细', //导航栏 中间的标题
    },
    // 此页面 页面内容距最顶部的距离
    height: app.globalData.height * 2 + 20,
  },
  onLoad(opt) {
    let that = this;
    that.setData({
      mypices:opt.money
    })
    let url = app.globalData.URL+'system/brokerage/wx/toDay';
    let data = {};
        app.wxRequest('GET', url, data, (res) => {
          let today_pic = res.data.money
          that.setData({
            today_pic:today_pic
          })
          console.log(res)
        }, (err) => {
          console.log(err.errMsg)
        })
  },
  order_status: function (e) {
    var current = e.currentTarget.dataset.current
    this.setData({
      currentTap: current
    })
  },
  wechat_withdrawal:function(){
    wx.navigateTo({
      url: '/modelB/pages/my/wechat_withdrawal/wechat_withdrawal?money='+this.data.mypices,
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  goquick_recharge: function () {
    wx.navigateTo({
      url: '/modelB/pages/my/quick_recharge/quick_recharge',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  
})
